package impl;

import java.util.Random;

public class Impl_5 {
    private static  final long[] addbook_id ={1000l,2000l,3000l,4000l};
    private Random random     =new Random();
    public Long addbook_id( ){

        if (random==null)
            random=new Random ();

        long l = (long)(random.nextInt(10000)+1);



        return l;
    }
    private static  final long[] addchapter_id ={10l,20l,30l,40l};
    private Random random1=new Random();
    public Long addchapter_id() {
        if (random1==null)
            random=new Random ();

        long l1 = (long)(random.nextInt(100)+1);



        return l1;
    }

    private  static final Long[] addread_duration={ 10l,20l,30l,40l,50l,60l};
    private Random random2=new Random ();


    public Long addread_duration() {
        if(random2==null)
            random=new Random ();
        long l2 = (long ) ( random.nextInt ( 60 ) + 1 );


        return l2;
    }

    private static final long[] addsort_id={1l,2l,3l,4l,5l,6l,7l,8l,9l};
    private Random random3=new Random ();
    public Long addsort_id( ) {
        if (random3==null)
            random=new Random ();
        long l3=(long)(random.nextInt (10)+1);

        return l3;
    }
    private static final Integer[] addsource_version_code= {1,2,3,4,5,6,7,8,9};
    private Random random4=new Random ();
    public Integer addsource_version_code() {
        if ( random4==null )
            random=new Random ();
        int i=(random.nextInt (10)+1);
        return 1;
    }
    //拉活渠道
    private  static final String [] addpull_channel={"电商类App","资讯类App","视频类App","游戏类App"};
    private Random random5=new Random ();
    public String addpull_channel() {
        if (random5==null)
            random=new Random ();
        return addpull_channel[random.nextInt(addpull_channel.length)];





    }
    private  static final String[] addidfa={"iphone4","iphone5","iphone5s","iphone6","iphone6s",
                                            "iphone7","iphone7s","iphone7Pius","iphone8s","iphone8Plus",
                                            "iphone11","iphone12","iphoneXmax","iphoneSE","iphoneSE2"};
    private Random random6=new Random ();
    public String addidfa() {
        if ( random6==null )
            random=new Random ();
        return addidfa[random.nextInt ( addidfa.length )];
    }
    private static final String[]  addkey_chain_idfa={"ip4","ip5","ip5s","ip6","ip6s",
                                                      "ip7","ip7s","ip7Ps","ip8s","ip8Ps",
                                                      "ip11","ip12","ipXx","ipSE","ipSE2"};
 private Random random7=new Random ();
    public String addkey_chain_idfa() {
        if ( random7==null)
            random=new Random ();

        return addkey_chain_idfa[random.nextInt ( addkey_chain_idfa.length )];
    }
private static final String[] addidfv={"CHN","US","HK","KORE","UK","JAPAN"};
    private Random random8=new Random ();
    public String addidfv() {
        if ( random8==null )
            random=new Random ();

        return addidfv[random.nextInt ( addidfv.length )];
    }
    private static final String[] addfont={"黑体","宋体","楷体","楷体","魏体","圆体","隶书","综艺体",
                                           "微软雅黑","新宋体","幼圆"};
    private Random random9=new Random();

    public String addfont() {
        if ( random9==null )
            random=new Random();

        return addfont[random.nextInt(addfont.length)];
    }
    private static final Integer[] addpage={1,2,3,4};
    private Random random10=new Random();

    public Integer addpage() {
        if ( random10==null)
            random=new Random();

        return addpage[random.nextInt(addpage.length)];
    }
    private static final String [] addsection_id={"_________@qq.com","__________@163.com","________@162.com",
                                                  "__________@sina.com"};
    private Random random11=new Random();


    public String addsection_id() { if ( random11==null )
        random=new Random ();
        return addsection_id[(random.nextInt (addsection_id.length))];

    }


}
